import actions from '../action/index'
const {GET_NEWS_SUCCESS} = actions

export default (state={},action)=> {
    switch(action.type){
        case GET_NEWS_SUCCESS:
            return {
                ...state,
                adminNews: action.data
            }
        default:
            return state;
    }
}